<template>
	<div>
		<div class="box">
			<AForm
				ref="form"
				v-model="formData"
				:config="formList"
				:layout="{ column: true }"
				:state="state"></AForm>
		</div>
	</div>
</template>

<script>
	import AForm from '@/components/A/A-form/form/index.vue';
	export default {
		name: '',
		components: { AForm },
		props: {
			value: {
				type: Object,
				default: () => {
					return {};
				},
			},
			deptList: {
				type: Object,
			},
			state: {
				required: false,
			},
		},
		data() {
			return {};
		},
		computed: {
			formData: {
				get() {
					return this.useVModel.call(this);
				},
				set(val) {
					this.$emit('input', val);
				},
			},
			formList() {
				return [
					{
						label: '详情描述',
						prop: 'reason',
						type: 'textarea',
						rules: true,
					},
					{
						label: '附件',
						prop: 'accessory',
						type: 'upload',
						prototype: {
							upType: 2,
						},
						rules: true,
					},
				];
			},
		},
		beforeDestroy() {},
		deactivated() {},
		created() {},
		mounted() {},
		methods: {
			setDefaultData() {
				// this.formData.newLessorId = this.formData.
			},
		},
	};
</script>

<style lang="scss" scoped>
	.box {
		border-radius: 8px;
		background-color: #fff;
		.title {
			font-size: 14px;
			font-family: PingFangSC, PingFang SC;
			font-weight: 500;
			color: #333333;
			line-height: 22px;
			padding-top: 15px;
			padding-bottom: 15px;
			// border-bottom: 1px solid #e9e9e9;
			display: flex;
			align-items: center;
			.tag {
				width: 8px;
				height: 8px;
				background-color: #1890ff;
				border-radius: 100%;
				margin-right: 10px;
			}
			.price {
				font-size: 14px;
				font-family: PingFangSC, PingFang SC;
				font-weight: 400;
				color: #1890ff;
				line-height: 20px;
				margin-left: 20px;
			}
		}
	}
</style>
